home *** CD-ROM | disk | FTP | other *** search
- DECLARE FUNCTION qcalc& (a%, b%, c%, d%, e%, f%)
-
- CLEAR '
- DEFINT A-Z ' default to integers
-
-
- CLS
-
- LOCATE 3, 10 ' put up a pseudo work screen
- PRINT "Bob's Shooz"
-
- FOR x = 1 TO 6
- LOCATE x + 4, 5
- READ d$
- PRINT d$
- NEXT x
-
- LOCATE 12, 5
- PRINT "Total:"
-
-
-
- LOCATE 13, 45
- PRINT "Weekly Shooz Sales"
- FOR x = 1 TO 6
- LOCATE x + 14, 48
- READ d$
- PRINT d$
- NEXT x
-
- LOCATE 22, 42
- PRINT "Total:"
-
-
- LOCATE 12, 32
- PRINT CHR$(174)
-
-
- retval& = qcalc(5, 38, 30, 71, 71, 2) ' do the calculator
- ' | | | +- beep speed
- ' | | +----- calc msgs
- ' | +-------- calc screen
- ' +------------ calc body
-
- LOCATE 12, 35 '
- PRINT " ";
-
- amt# = CDBL(retval&) ' convert LONG return to DOUBLE
- amt# = amt# / 100 ' make it decimal
- LOCATE 12, 22
- PRINT USING "###.##"; amt# ' print it
-
-
- 'take out for no pause between demoes
- LOCATE 23, 10
- PRINT "Press Any Key to Continue" ' allow for visual appreciation
- x$ = INPUT$(1)
- LOCATE 23, 10
- PRINT SPACE$(30);
-
-
- LOCATE 22, 65 ' prepare for second column
- PRINT CHR$(174); ' print pointer
- retval& = qcalc(3, 5, 30, 71, 71, 7)
-
- amt# = CDBL(retval&) / 100 ' convert LONG to FLOAT
- LOCATE 22, 50
- PRINT USING "####.##"; amt#
-
-
-
- SYSTEM
-
-
- DATA Ladies Pumps 34.23, 6" Spike Heels 258.54, Men's Loafers 37.62
- DATA Sneakers 118.06, Kid's Keds 23.65, Wingtips 187.88
-
- DATA Mon 322.45, Tue 429.65, Wed 309.65, Thr 435.76, Fri 879.43
- DATA Sat 1398.41, Sun 690.07
-
-
-
-
-